package com.hanserwei.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hanserwei.community.entity.po.Role;
import com.hanserwei.community.entity.vo.UserRoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    Boolean addUserRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId);

    List<UserRoleVO> listUserRole();

    Boolean deleteUserRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId);
}